package com.example.passport.mapper;

import com.example.passport.dto.RoleTaskCreateDto;
import com.example.passport.dto.RoleTaskDto;
import com.example.passport.dto.TaskDto;
import com.example.passport.entity.Role;
import com.example.passport.entity.User;
import org.apache.ibatis.annotations.*;

@Mapper
public interface RoleTaskMapper {
//    @Select("SELECT COUNT(*) FROM role_task WHERE role_id=#{roleId}  AND task_code = #{taskCode} LIMIT 1")
//    long check(@Param("roleId") long roleId ,@Param("taskCode") String taskCode );
//
//    @Insert("INSERT INTO `role_task`" +
//            " (`role_id`,`task_code`) VALUES" +
//            " (#{roleId}, #{taskCode})")
//    void create(RoleTaskCreateDto roleTaskCreateDto);
//
//    @Delete("DELETE FROM role_task WHERE role_id = #{roleId} AND task_code = #{taskCode}")
//    int delete(RoleTaskCreateDto roleTaskCreateDto);
//
//    @Delete("DELETE FROM role_task WHERE role_id = #{roleId}")
//    void deleteByRole(TaskDto taskDto);

}
